package com.cinema.entity;

import java.util.Date;

/**
 * 影厅实体类
 */
public class Hall {
    private Integer id;
    private Integer cinemaId;
    private String name;
    private Integer totalSeats;
    private String seatLayout;
    private String status;
    private Date createdAt;

    // 关联对象
    private Cinema cinema;

    // 辅助属性
    private String cinemaName;

    // 构造方法
    public Hall() {}

    public Hall(Integer cinemaId, String name, Integer totalSeats) {
        this.cinemaId = cinemaId;
        this.name = name;
        this.totalSeats = totalSeats;
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(Integer cinemaId) {
        this.cinemaId = cinemaId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTotalSeats() {
        return totalSeats;
    }

    public void setTotalSeats(Integer totalSeats) {
        this.totalSeats = totalSeats;
    }

    public String getSeatLayout() {
        return seatLayout;
    }

    public void setSeatLayout(String seatLayout) {
        this.seatLayout = seatLayout;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Cinema getCinema() {
        return cinema;
    }

    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    @Override
    public String toString() {
        return "Hall{" +
                "id=" + id +
                ", cinemaId=" + cinemaId +
                ", name='" + name + '\'' +
                ", totalSeats=" + totalSeats +
                ", status='" + status + '\'' +
                '}';
    }
}
